package com.zeroone.star.seata.controller;

import com.zeroone.star.seata.service.TransService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description 测试seata控制器
 * @Author lyx
 * @since 2024/11/8 21:54
 */

@RestController
@RequestMapping("seata")
@Api(tags = "seata")
public class SeataController {

    @Resource
    TransService service;

    @ApiOperation("测试保存")
    @PostMapping("test-save")
    public Integer testSave(){
        return service.saveData();
    }
}
